<template>
	<view class="content">
		<swiper class="banner-swiper"  autoplay="true" >
			<swiper-item>
				<image class="banner-image" src="../../static/image/index/banner1.png" mode="aspectFit"></image>
			</swiper-item>
			<swiper-item>
				<image class="banner-image" src="../../static/image/index/banner2.png" mode="aspectFit"></image>
			</swiper-item>
			<swiper-item>
				<image class="banner-image" src="../../static/image/index/banner3.png" mode="aspectFit"></image>
			</swiper-item>
		</swiper>
		<view class="group-menu">
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/image/icon/loupan_icon.png"></image>
				<view class="group-menu-item-text">热改楼盘</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/image/icon/linbao_icon.png"></image>
				<view class="group-menu-item-text">拎包入住</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/image/icon/gongdi_icon.png"></image>
				<view class="group-menu-item-text">工地实景</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/image/icon/baojie_icon.png"></image>
				<view class="group-menu-item-text">保洁阿姨</view>
			</view>
		</view>
		<view class="building-list">
			<view class="building-header">
				<view class="building-header-left">
					<view class="line"></view> 热改楼盘
				</view>
				<view class="building-header-right">
					 更多 
				</view>
			</view>
			<view class="building-list-content">
				<view class="building-item-content">
					<image class="building-item-image" mode="aspectFit" src="../../static/image/index/build1.png"></image>
					<view class="building-item-mark"></view>
				</view>
			</view>
		</view>
		
		自行完成后面内容，下课前检查
		<!-- 拎包入住 -->
		<view class="handbag-list">
		</view>
		<!-- 工地实景 -->
		<view class="work-list">
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				title: 'Hello 宋杰-学号'
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>
<style >
	.building-list-content{
		box-sizing: border-box;
		overflow-x: scroll;
		margin-top: 20rpx;
		
	}
	.building-item-content{
		width: 382rpx;
		height: 510rpx;
		position: relative;
	}
	/* 热改楼盘展示图片 */
	.building-item-image{
		width: 382rpx;
		height: 510rpx;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}
	/* 笼罩阴影透明部分 */
	.building-item-mark{
		position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了
		bottom: 0px;
		left: 0px;
		width: 382rpx;
		height: 94rpx;
		background: rgba(0, 0, 0 , .3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}
	
	
	
	
	
	
	
	
	*{
		margin: 0 auto;
		padding: 0 0;
	}
	.content {
		width: 100vw;
		height: 100vh;
		background-color: #F5F5F5;
		box-sizing: border-box; //盒子模型
	}
	.banner-swiper{
		width: 100%;
		height: 450rpx;
	}
	.banner-image{
		width: 100%;
		height: 100%;
	}
	.group-menu{
		box-sizing: border-box;
		padding: 40rpx 52rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		
	}
	.group-menu-item{
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.group-menu-item-icon{
		width: 80rpx;
		height: 80rpx;
	}
	.group-menu-item-text{
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		margin-top: 8rpx;
		line-height: 24rpx;
	}
	.building-list{
		background: #ffffff;
		box-sizing: border-box;
		padding-left: 30px;
		padding-top: 34px;
		padding-bottom: 28px;
		
	}
	.building-header{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.building-header-left{
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 28rpx;
		
		display: flex;
		align-items: center;
	}
	.line{
		width: 6rpx;
		height: 28rpx;
		background: #3d9c36;
		margin-right: 20rpx;
	}
	.building-header-right{
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		line-height: 24rpx;
	}
	.building-header-right::after{
		content: ">";
		margin-left: 10rpx;
		margin-right: 45rpx;
	}
</style>
